﻿using System;
using System.Collections.Generic;
using System.Text;

using EShop.DAL;
using EShop.Model;

namespace EShop.BLL
{

    public class MerchandiseOrderBLL
    {
        DAL.MerchandiseOrderDAL oMerchandiseOrderDAL = new MerchandiseOrderDAL();
        public bool UpdateMerchandiseSellQty(string strBarcode, int iNum)
        {
            return oMerchandiseOrderDAL.UpdateMerchandiseSellQty(strBarcode, iNum);
        }

        public int AutoSell(string strBarcode)
        {
            return oMerchandiseOrderDAL.AutoSell(strBarcode);
        }

        /// <summary>
        /// 插入收银
        /// </summary>
        /// <param name="oMerchandiseOrder"></param>
        /// <returns></returns>
        public string InserMerchandiseOrder(Model.MerchandiseOrder oMerchandiseOrder)
        {
            return oMerchandiseOrderDAL.InserMerchandiseOrder(oMerchandiseOrder);
        }
        /// <summary>
        /// 插入收银详细信息
        /// </summary>
        /// <param name="oMerchandiseOrderDetail"></param>
        /// <returns></returns>
        public bool InsertMerchandiseOrderDeatil(Model.MerchandiseOrderDetail oMerchandiseOrderDetail)
        {
            return oMerchandiseOrderDAL.InsertMerchandiseOrderDeatil(oMerchandiseOrderDetail);
        }
    }
}
